package com.vankimgps.activity;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TabHost;

public class TabHostActivity extends TabActivity {
	private TabHost _tabHost;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tabhost_layout);
		
		_tabHost = getTabHost();
		TabHost.TabSpec spec;
		
		Intent intent;
		intent = new Intent(this,TrackingActivity.class);
		spec = _tabHost.newTabSpec("Tracking")
					.setIndicator("Tracking")
					.setContent(intent);
		_tabHost.addTab(spec);

		intent = new Intent(this,FindingActivity.class);
		spec = _tabHost.newTabSpec("Finding")
					.setIndicator("Finding")
					.setContent(intent);
		_tabHost.addTab(spec);
		
		intent = new Intent(this,SettingsActivity.class);
		spec = _tabHost.newTabSpec("Settings")
					.setIndicator("Settings")
					.setContent(intent);
		_tabHost.addTab(spec);
		
		intent = new Intent(this,AboutUsActivity.class);
		spec = _tabHost.newTabSpec("About Us")
					.setIndicator("About Us")
					.setContent(intent);
		_tabHost.addTab(spec);
	}
}
